package com.twu.biblioteca.core;

/**
 * Created by cristianpinto on 2/17/14.
 */
public class Book {

    private String title;
    private boolean available;
    private User checkedOutBy;

    public Book(String title) {
        this.title = title;
        this.available = true;
    }

    public String getTitle() {
        return title;
    }

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }

    @Override
    public String toString() {
        return this.title;
    }

    public void setCheckedOutBy(User checkedOutBy) {
        this.checkedOutBy = checkedOutBy;
    }

    public User getCheckedOutBy() {
        return checkedOutBy;
    }
}
